def sum_num(list_num):
    if len(list_num) == 1:
        return list_num[0]
    else:
        return list_num[0] + sum_num(list_num[1:])


if __name__ == "__main__":
    num_list = [x for x in range(101)]
    sum_r = sum_num(num_list)
    print(sum_r)